from milvus_model.hybrid.mgte import MGTEEmbeddingFunction
from fastapi import Depends
import typing as T
import logging
from .Global import configuration


_embeddingFunction = MGTEEmbeddingFunction(configuration.embedding_model_path)

EmbeddingFunction = T.Annotated[
    MGTEEmbeddingFunction, Depends(lambda: _embeddingFunction)
]


logging.info("词嵌入模型加载成功...")
